# -*- coding: utf-8 -*-
# @Time    : 2023/6/6 0:04
# @Author  : lxy
# @Email   : 1612393119@qq.com
# @File    : collect_page.py
# @Software: PyCharm
from pages.base_page import BasePage
from appium.webdriver.common.mobileby import MobileBy as By

class CollectPage(BasePage):
    collect_menu_locator=(By.XPATH,'//*[@text="菜单"]')
    collect_course_locator=(By.XPATH,'//*[@text="课程"]')
    collect_history_locator=(By.XPATH,'//*[@text="浏览历史"]')


    def collect_menu(self):
        self.find_element(self.collect_menu_locator).click()
    def collect_sourse(self):
        self.find_element(self.collect_course_locator).click()
    def collect_history(self):
        self.find_element(self.collect_history_locator).click()